package com.futureCloudMOM.core.view;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;

@Data
@ApiModel(value = "v_Basic_SourceInfo", description = "源单主表--发生方/目标方视图")
@TableName(value = "v_Basic_SourceInfo")
public class VBasicSourceinfo  implements Serializable {


    @NotNull(message="[]不能为空")
    @ApiModelProperty("类型id")
    @TableField(value = "RoleTypeId")
    private Integer RoleTypeId;

    @NotNull(message="[]不能为空")
    @ApiModelProperty("发生方/目标方 id")
    @TableField(value = "Id")
    private Long Id;

    @NotBlank(message="[]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("发生方/目标方 编码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "Code")
    private String Code;

    @NotBlank(message="[]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("发生方/目标方 名称")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "Name")
    private String Name;

}

